package com.ltv.xiangqibook.common;

import java.io.File;

public class GameIDCreator {
	
    public static String getGameLocation(File file, String bookLocation) throws Exception {
        return file.getAbsolutePath().replace(bookLocation, "");
    }
    
    public static String getGameID(File file, String bookLocation) throws Exception {
        return MD5Util.md5(getGameLocation(file, bookLocation));
    }
}
